import $http from "../assets/js/http";

//领用物品查询
export async function receiving_items_select({
  AR_number,
  SSL_number,
  RE_number,
  RE_name,
  limit
}) {
  return $http.post("Fixedassets/Fixedassets/receiving_items_select", {
    AR_number,
    SSL_number,
    RE_number,
    RE_name,
    limit
  });
}
//新增物品
export async function receiving_items_add({
  AR_number,
  SSL_number,
  RE_number,
  RE_name,
  RE_price,
  RE_compensation_price,
  RE_tnumber,
  RE_remarks
}) {
  return $http.post("Fixedassets/Fixedassets/receiving_items_add", {
    AR_number,
    SSL_number,
    RE_number,
    RE_name,
    RE_price,
    RE_compensation_price,
    RE_tnumber,
    RE_remarks
  });
}
//修改物品
export async function receiving_items_update({
  AR_number,
  SSL_number,
  RE_number,
  RE_name,
  RE_price,
  RE_compensation_price,
  RE_tnumber,
  // RE_received
  RE_remarks
}) {
  return $http.post("Fixedassets/Fixedassets/receiving_items_update", {
    AR_number,
    SSL_number,
    RE_number,
    RE_name,
    RE_price,
    RE_compensation_price,
    RE_tnumber,
    // RE_received
    RE_remarks
  });
}

//删除物品
export async function receiving_items_delete(AR_number, SSL_number, RE_number) {
  return $http.post("Fixedassets/Fixedassets/receiving_items_delete", {
    AR_number,
    SSL_number,
    RE_number
  });
}
